<?php
include_once("conn.php");

$webname = $_POST["webname"];
$webaddress = $_POST["webaddress"];

$query = "select lid from link where webname='".$webname."' && webaddress='".$webaddress."'";
$result = mysql_query($query);
while( $gotLid = mysql_fetch_array($result) )
{
	$lid=$gotLid["lid"];
	$query = "delete from cate_link where lid='".$lid."'";
	mysql_query($query);
	$query = "delete from link where lid='".$lid."'";
	mysql_query($query);

}

?>